import { requeat as axios } from "../utils/axios";

// 登录
export const loginApi = () => {
  return axios({
    url: "/myOrder",
    method: "get",
  });
};

// 获取首页猫眼电影正在热映列表
export const filmListApi = () => {
  return axios({
    url: "/film",
    method: "get",
  });
};
// 获取首页猫眼电影即将上映列表
export const comingSoonListApi = () => {
  return axios({
    url: "/comingSoon",
    method: "get",
  });
};
// 获取首页推荐民宿列表
export const getCityListApi = () => {
  return axios({
    url: "/getCityList",
    method: "get",
  });
};
// 根据城市id获取民宿详细
export const getHotelListApi = (data) => {
  return axios({
    url: "/getHotelList?id=" + data,
    method: "get",
  });
};

// 获取猜你喜欢的数据
export const youLikeListApi = (data) => {
  return axios({
    url: "/youLike?id=" + data,
    method: "get",
  });
};

// 获取底部热门区域列表
export const hotCityListApi = () => {
  return axios({
    url: "/cityList",
    method: "get",
  });
};
// 获取底部热门分类列表
export const hotFoodListApi = () => {
  return axios({
    url: "/foodList",
    method: "get",
  });
};
